package com.hbnu.pojo;

import java.util.HashSet;
import java.util.Set;

public class Classes {
    private int cid;
    private String cname;
//    private Teacher teacher;

    Set<Student> student = new HashSet<>();
    Set<Teacher> teachers =new HashSet<>();

//    public Set<Student> getStudent() {
//        return student;
//    }
//
//    public void setStudent(Set<Student> student) {
//        this.student = student;
//    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

//    public Teacher getTeacher() {
//        return teacher;
//    }
//
//    public void setTeacher(Teacher teacher) {
//        this.teacher = teacher;
//    }



    public Set<Teacher> getTeachers() {
        return teachers;
    }

    public void setTeachers(Set<Teacher> teachers) {
        this.teachers = teachers;
    }

    public Set<Student> getStudent() {
        return student;
    }

    public void setStudent(Set<Student> student) {
        this.student = student;
    }

    public Classes(Set<Student> student) {
        this.student = student;
    }

    @Override

    public String toString() {
        return "Classes{" +
                "cid=" + cid +
                ", cname='" + cname + '\'' +
//                ", teacher=" + teacher +

                '}';
    }
}
